export interface Course {
    id: number;
    title: string;
    description: string;
    teacherId: number;
    price: number;
    duration: number; // 课程时长（分钟）
    category: string;
    tags: string[];
    createdAt: Date;
    updatedAt: Date;
}

export interface CourseDetail extends Course {
    chapters: {
        id: number;
        title: string;
        content: string;
        duration: number;
    }[];
}
